<template>
  <div>
    <Home_head></Home_head>
    <div class="baidu_search" style="margin-top: 70px;margin-bottom: 80px;">
        <div class="top-img"></div>
        <div class="top-search">
            <div class="search-box">
                <input type="text" name="search" class="search-left" v-model="search">
                <span class="iconfont icon-xiangji"></span>
                <input class="search-right" type="submit" name="btn" id="su" value='百度一下' @click="a()">
            </div>
        </div>
    </div>
    <div style="width: 800px; height: 140px; background-color :#fff;margin: 0 auto;border-radius: 8px;">
        <div style="border-left: 6px solid;height: 20px;transform: translateY(10px); padding-left: 5px;">
            <span>编程</span>
        </div>
        <div style="margin-top: 15px;margin-left: 0px;">
            <a href="https://www.githubs.cn/" class="favion_a"><img src="https://www.githubs.cn/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">github</a>
            <a href="https://www.csdn.net/" class="favion_a"><img src="https://www.csdn.net/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">csdn</a>
            <a href="https://gitee.com/" class="favion_a"><img src="https://gitee.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">码云</a>
            <a href="https://echarts.apache.org/" class="favion_a"><img src="https://echarts.apache.org/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">echarts</a>
            <a href="https://leetcode.cn/" class="favion_a"><img src="https://leetcode.cn/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">leetcode</a>
            <a href="https://www.aliyun.com/" class="favion_a"><img src="https://www.aliyun.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">阿里云</a>
            <div style="margin-top: 20px;">
                <a href="https://code.visualstudio.com/" class="favion_a"><img src="https://code.visualstudio.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">Vscode</a>
                <a href="https://www.nowcoder.com/" class="favion_a" style="margin-left: 48px;"><img src="https://www.nowcoder.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">牛客网</a>
            </div>
        </div>
    </div>

    <div style="width: 800px; height: 100px; background-color :#fff;margin: 0 auto; margin-top: 30px;border-radius: 8px;">
        <div style="border-left: 6px solid;height: 20px;transform: translateY(10px); padding-left: 5px;">
            <span>导航</span>
        </div>
        <div style="margin-top: 15px;margin-left: 0px;">
            <a href="https://www.baidu.com/" class="favion_a"><img src="https://www.baidu.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">百度</a>
            <a href="https://cn.bing.com/" class="favion_a"><img src="https://cn.bing.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">bing</a>
            <a href="https://www.sogou.com/" class="favion_a"><img src="https://www.sogou.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">搜狗</a>
            <a href="http://www.soso.com/" class="favion_a"><img src="http://www.soso.com/soso/images/favicon_new.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">soso</a>
        </div>
    </div>

    <div style="width: 800px; height: 150px; background-color :#fff;margin: 0 auto; margin-top: 30px;border-radius: 8px;">
        <div style="border-left: 6px solid;height: 20px;transform: translateY(10px); padding-left: 5px;">
            <span>娱乐</span>
        </div>
        <div style="margin-top: 15px;margin-left: 0px;">
            <a href="https://www.bilibili.com/" class="favion_a"><img src="https://www.bilibili.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">哔哩哔哩</a>
            <a href="https://v.qq.com/" class="favion_a"><img src="https://v.qq.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">腾讯视频</a>
            <a href="https://y.qq.com/" class="favion_a"><img src="https://y.qq.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">qq音乐</a>
            <a href="https://www.iqiyi.com/" class="favion_a"><img src="https://www.iqiyi.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">爱奇艺视频</a>
            <a href="https://www.youku.com/" class="favion_a"><img src="https://www.youku.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">优酷视频</a>

            <div style="margin-top: 20px;">
                <a href="https://www.taobao.com/" class="favion_a"><img src="https://www.taobao.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">淘宝</a>
                <a href="https://www.jd.com/" class="favion_a" style="margin-left: 93px;"><img src="https://www.jd.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">京东</a>
                <a href="https://pages.tmall.com" class="favion_a" style="margin-left: 90px;"><img src="https://pages.tmall.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">天猫</a>
                <a href="https://www.douyu.com/" class="favion_a" style="margin-left: 77px;"><img src="https://www.douyu.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">斗鱼</a>
                <a href="hhttps://www.huya.com/" class="favion_a" style="margin-left: 110px;"><img src="https://www.huya.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">虎牙</a>       
            </div>

            <div style="margin-top: 20px;">
                <a href="https://www.douyin.com/" class="favion_a"><img src="https://www.douyin.com/favicon.ico" style="width: 16px;height: 16px; transform: translateY(3.5px);margin-right: 4.5px;">抖音</a>
            </div>
            
             
        </div>
    </div>

  </div>
</template>

<script>
import Home_head from "@/components/Home_head.vue";
export default {
    data(){
        return{
            search:"",
        }
    },
    components:{
        Home_head,
    },
    methods:{
        a(){
            window.open("https://www.baidu.com/s?wd="+this.search, "_blank");
        }
    }
}
</script>

<style>
  * {
        margin: 0;
        padding: 0;
    }
    .favion_a{
        color: black;
        text-decoration: none;
        margin-left: 60px;
        
    }
    .top-img {
        width: 420px;
        height: 131px;
        background-color: pink;
        margin: 80px auto;
        background: url(https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png) no-repeat -60px -102px;
        zoom: .5;
    }
    
    .top-search {
        width: 680px;
        height: 45px;
        margin: 30px auto;
       
    }
    
    .search-box {
        display: flex;
        position: relative;
    }
    
    .search-left {
        width: 545px;
        height: 45px;
        border: 2px solid rgb(196, 199, 206);
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        outline-color: rgb(78, 110, 242);
        padding-left: 40px;
    }
    
    .icon-xiangji {
        position: absolute;
        right: 150px;
        top: 12px;
        font-size: 24px;
        color: rgb(196, 199, 206);
    }
    
    .search-right {
        color: #fff;
        font-size: 18px;
        width: 110px;
        height: 49px;
        border: 0px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        background-color: rgb(78, 110, 242);
    }
</style>